import type { App } from 'vue';
import MaterialEditor from '@/components/material-editor/index.vue';
import DwTree from '@/components/tree/index.vue';
import DwTable from '@/components/table/index.vue';
import DwStep from '@/components/step/index.vue';
import VirtualSelect from '@/components/virtual-select/index.vue';
import DwPageWarpper from '@/components/page-warpper/index.vue';
import DwMenuDatagridForm from '@/components/menu-datagrid-form/index.vue';
//----------选择器--------------
import TreeSelector from '@/components/selector/tree-selector/index.vue';
import DictSelector from '@/components/selector/dict-selector/index.vue';
import DialogSelector from '@/components/selector/dialog-selector/index.vue';
import DropdownSelector from '@/components/selector/dropdown-selector/index.vue';
import TagsSelector from '@/components/selector/tags-selector/index.vue';

export default {
  install: (app: App) => {
    app.component('MaterialEditor', MaterialEditor);
    app.component('DwTree', DwTree);
    app.component('DwTable', DwTable);
    app.component('DwStep', DwStep);
    app.component('DwPageWarpper', DwPageWarpper);
    app.component('DwMenuDatagridForm', DwMenuDatagridForm);
    app.component('VirtualSelect', VirtualSelect);

    app.component('TreeSelect', TreeSelector);
    app.component('DictSelector', DictSelector);
    app.component('DialogSelector', DialogSelector);
    app.component('DropdownSelector', DropdownSelector);
    app.component('TagsSelector', TagsSelector);
  },
};
